package utn.tsb.tsbxml;

import com.trolltech.qt.gui.QApplication;

public class App 
{

    private static String qss_style = "QMainWindow {" +
                                        "background-color: #dd4814;" +
                                      "}" +
                                      "QFrame#panel {" +
                                        "background: #ffffff;" +
                                        "border-radius: 10px;" +
                                        "border-style: solid;" +
                                        "border-color: #939389;" +
                                        "border-width: 1px;" +
                                        "color: white;" +
                                        "min-height: 100px;" +
                                       "}" +
                                       "QToolBar {" +
                                        "background: #ffffff;" +
                                        "border-radius: 10px;" +
                                        "border-style: solid;" +
                                        "border-color: #939389;" +
                                        "border-width: 1px;" +
                                        "color: white;" +
                                        "margin-top: 5px;" +
                                        "margin-left: 5px;" +
                                        "margin-right: 5px;" +
                                       "}" +
                                       "QPushButton[enabled=\"true\"] {" +
                                            "background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1," +
                                                "stop: 0 #fecfc2,stop: 1.0 #e44e19);" +
                                            "border-radius: 5px;" +
                                            "border-style: solid;" +
                                            "padding: 6px;" +
                                            "color: black;" +
                                            "border-color: #939389;" +
                                            "border-width: 1px;" +
                                            "height: 14px;" +
                                        "}" +
                                        "QPushButton:hover[enabled=\"true\"] {" +
                                            "background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1," +
                                                "stop: 0 #fedad1,stop: 1.0 #e47a55);" +
                                            "border-radius: 5px;" +
                                            "border-style: solid;" +
                                            "padding: 6px;" +
                                            "color: black;" +
                                            "border-color: #939389;" +
                                            "border-width: 1px;" +
                                            "height: 12px;" +
                                        "}" +
                                        "QPushButton[enabled=\"false\"] {" +
                                            "background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1," +
                                                "stop: 0 #eaeaea, stop: 1.0 #cacaca);" +
                                            "border-radius: 5px;" +
                                            "border-style: solid;" +
                                            "padding: 6px;" +
                                            "color: #595959;" +
                                            "border-color: #939389;" +
                                            "border-width: 1px;" +
                                            "height: 12px;" +
                                        "}";

    public static void main( String[] args )
    {
        QApplication.initialize(args);
        
        MainWindow app = new MainWindow();
        app.show();
        app.setStyleSheet(App.qss_style);
        QApplication.exec();
    }
}
